package com.jichangxiu.framework.service;

import com.jichangxiu.common.entity.bo.Record;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * LoginInfoService:
 *
 * @author Jcx
 * @create 2023-04-03 22:08
 */
public interface LoginInfoService {

    public static final Logger logger = LoggerFactory.getLogger("LoginInfoService");

    /**
     * 保存登录日志
     *
     * @param record 登录日志信息载体
     * @return 是否成功
     */
    default Boolean saveLoginInfo(Record record) {
        logger.info("----------开始打印登录日志----------");
        logger.info(record.toJsonStr());
        logger.info("----------------------------------");
        return true;
    }


}
